<template>
  <div class="intelligent-wrap">
    <el-divider content-position="left">短信模式</el-divider>
    <el-form ref="form" :model="form" label-width="100px">
      <div class="el-form-item__content100">
        <el-form-item style="width: 40%;" label="开启人工智能">
          <el-switch v-model="form.open"></el-switch>
        </el-form-item>
      </div>
    </el-form>
    <el-radio-group v-model="form.type" size="mini">
      <el-radio-button label="百度"></el-radio-button>
    </el-radio-group>
    <el-divider content-position="left">人工智能配置</el-divider>

    <el-form ref="form" :model="baidu" label-width="130px" style="width: 50%" size="mini">
      
      <el-form-item label="ACCESSTOKEN">
        <el-input v-model="baidu.accesstoken"></el-input>
      </el-form-item>
      <el-form-item label="SECRETKEY">
        <el-input v-model="baidu.secretkey"></el-input>
      </el-form-item>
      <el-form-item label="COR_APPID">
        <el-input v-model="baidu.cor_appid"></el-input>
      </el-form-item>
      <el-form-item label="COR_APPKEY">
        <el-input v-model="baidu.cor_appkey"></el-input>
      </el-form-item>
      <el-form-item label="COR_SECRETKEY">
        <el-input v-model="baidu.cor_secretkey"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">保存</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'Intelligent',
  data(){
    return {
      form:{
        open: true,
        type: 'baidu'
      },
      baidu:{
        accesstoken: '',
        secretkey: '',
        cor_appid:'',
        cor_appkey:'',
        cor_secretkey: ''
      }
    }
  }
}
</script>
<style scoped></style>
